package com.example.demo.controller;

import org.apache.axis.client.Call;
import org.apache.axis.client.Service;
import javax.xml.namespace.QName;

import java.net.MalformedURLException;
import java.net.URL;

/**
 * <p>
 * Test
 * </p>
 *
 * @author flyduck
 * @since 2023/9/5
 */
public class Test {
    public static void main(String[] args) throws Exception {
        Call call=(Call)(new Service()).createCall();
        call.setTargetEndpointAddress(new URL("http://10.120.81.22:8080/webservice/ScrzService?wsdl"));
        call.setOperationName(new QName("server.wei.com","allJK"));
        call.setTimeout(30000);
        String re=(String)call.invoke(new String[]{""});
    }
}
